<%@ tag language="java" pageEncoding="UTF-8" body-content="empty" trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ attribute name="items" type="java.lang.String" required="true" description="需要设置哪几项，逗号分隔，all/add/delete/save/refresh" %>
<%@ attribute name="style" type="java.lang.String" required="false" description="样式，默认为icon" %>
<%@ attribute name="className" type="java.lang.String" required="false" description="css样式" %>
<%@ attribute name="onAdd" type="java.lang.String" required="false" description="点击添加按钮时触发的方法" %>
<%@ attribute name="onSave" type="java.lang.String" required="false" description="点击保存按钮时触发的方法" %>
<%@ attribute name="onDelete" type="java.lang.String" required="false" description="点击删除按钮时触发的方法" %>
<%@ attribute name="onSub" type="java.lang.String" required="false" description="点击减号按钮时触发的方法" %>
<%@ attribute name="onRefresh" type="java.lang.String" required="false" description="点击刷新按钮时触发的方法" %>
<c:set var="operBarId" value="${u:uuid() }"></c:set>
<div data-oper-bar="${operBarId}" class="${className}">
</div>
<script type="text/javascript">
(function(){
	TagSupport.operBar({
		"id":"${operBarId}",
		"items":"${items}",
		"style":"${style}",
		"className":"${className}",
		"onAdd":"${onAdd}",
		"onDelete":"${onDelete}",
		"onSave":"${onSave}",
		"onRefresh":"${onRefresh}",
		"onSub":"${onSub}"
	});
})();
</script>
